package com.msb.pojo;

/**
 * @author wuJiaWei
 * @version 1.0
 */
public class Book {
    private int id;
    private String name;

    public Book(int id, String name) {
        this.id = id;
        this.name = name;
        System.out.println("有参构造器");
    }

    public Book() {
        System.out.println("Book类空构造器");
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        System.out.println("id的setter方法");
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("name的setter方法");
        this.name = name;
    }
}
